package com.hunktimes.wholesale.base

import android.os.Bundle
import android.view.View
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.TextView
import com.hunktimes.wholesale.R

/**
 * Author: Delete
 * Date: 2020/7/27 9:22
 * Description:
 *
 */
open class BasePageFragment : BaseTitleFragment {

    constructor() : super()
    constructor(contentLayoutId: Int) : super(contentLayoutId)

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        val backIv: ImageView? = view.findViewById(R.id.back_iv)
        backIv?.setImageResource(R.drawable.ic_arrow_left)
        val back:FrameLayout? = view.findViewById(R.id.back)
        back?.setOnClickListener {
            rootNavController.navigateUp()
        }

    }
}